-- drop_rate
-- create by panyl
-- xx掉落率（转化）+N%

return {
    apply = function(prop, baseValue)
        if prop[3] == 0 then
            return baseValue;
        end

        -- 增加
        return baseValue + math.modf(baseValue * prop[3] / 1000);
    end,

    desc = function(prop)
        local str = PropM.query(prop[1], "desc");
        local name = ItemM.query(prop[2], "name");

        str = string.gsub(str, "{1}", prop[3] / 10);

        return string.gsub(str, "{0}", name);
    end,

    record = function(target, prop, path)
        return false;
    end
};
